import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { FormsModule } from "@angular/forms";
import { TableModule } from "../../../app/shared/components/table/table.module";
import { PipesModule } from "../../../app/shared/pipes/pipes.module";
import { RouterModule, Routes } from "@angular/router";
import { ToasterModule } from "angular2-toaster";
import { GovernanceReportsComponent } from "./governanceReports.component";
import { GovernanceReportsService } from "./governanceReports.service";
import { CompanyReportComponent } from "./companyReport/companyReport.component";
import { FileUploadModule } from "ng2-file-upload";
import { SweetAlert2Module } from "@toverux/ngx-sweetalert2";
import { ModalModule } from "../../shared/components/modal/modal.module";
import { BsDatepickerModule } from "ngx-bootstrap/datepicker";

const routes: Routes = [
    {
        path: '',
        component: GovernanceReportsComponent
    },
    {
        path: 'company/:id/:name',
        component: CompanyReportComponent
    }
];

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        TableModule,
        PipesModule,
        FileUploadModule,
        SweetAlert2Module,
        ModalModule,
        RouterModule.forChild(routes),
        ToasterModule.forRoot(),
        BsDatepickerModule.forRoot()
    ],
    declarations: [
        GovernanceReportsComponent,
        CompanyReportComponent
    ],
    providers: [GovernanceReportsService]
})
export class GovernanceReportsModule {

}
